<template>
	<view>
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
var wv;//计划创建的webview
export default {
	data(){
		return{
			url: '',
		}
	},
	onLoad(option) {
		//链接
		this.url = getApp().globalData.webUrl;
		console.log("url:" + this.url);
		
		// #ifdef APP-PLUS
		var currentWebview = this.$scope.$getAppWebview(); //此对象相当于html5plus里的plus.webview.currentWebview()。在uni-app里vue页面直接使用plus.webview.currentWebview()无效
		setTimeout(function() {
			wv = currentWebview.children()[0]
			wv.setStyle({scalable:true})
		}, 1000);
		// #endif
		
	},
};
</script>

<style lang="scss" scoped>

</style>
